﻿using System;
using Objects;
using Objects.EmployeeInfo;

public partial class _Default : cPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Employee emp = this.CurrentUser; ;       
        // check if the employee is field Admin
        if (emp.IsFieldAdministrator(emp.GUI))
            Response.Redirect("FieldAdminHome.aspx");
        else
            Response.Redirect("CreateAnEvent.aspx");

    }
}